package top.tangyh.lamp.care.common;

public enum ExeYaoStatusNewEnum {

    //执行状态 -1已配药 0 已接收 1 已执行 3 已暂停 4 已停止 未接收没有标志
    //未开始
    DISPENSED("-1", "已配药"),
    RECEIVED("0", "已接收"),
    EXECUTED("1", "已执行"),
    PAUSED("3", "已暂停"),
    STOPED("4", "已停止"),
    NO_RECEIVED("null", "未接收");

    private String statusCode;

    private String statusName;

    ExeYaoStatusNewEnum(String statusCode, String statusName) {
        this.statusCode = statusCode;
        this.statusName = statusName;
    }

    ExeYaoStatusNewEnum() {
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public static ExeYaoStatusNewEnum forValue(String statusCode) {
        for (ExeYaoStatusNewEnum value : values()) {
            if (value.statusCode.equals(statusCode)) {
                return value;
            }
        }
        return null;
    }
}
